package com.sloth.bear.dto.request;

import com.sloth.bear.constant.CategoryType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class CategoryRequest {

    @NotNull(message = "类型不能为空")
    private CategoryType type;

    @NotBlank(message = "分类名称不能为空")
    private String name;

    private String description;

    private String color;

    private Integer sortNo;

    /**
     * 父分类ID
     */
    private Long parentId;
}